<wxs module="dateFr" src="../../js/filter.wxs"></wxs>
<!-- 头部 -->
<view id="position">
    <view class="container">
       <!--  <navigator url="/pages/reserveShops/reserveShops" hover-class="none" class="shops-box"> -->
            <image class='icon_style' src="{{urlAddress}}/meal_icon_location1.png" />
            <label class="shopName">{{shopName}}</label>
            <!-- <image class='icon1_style' src="{{urlAddress}}/meal_icon_next1.png" /> -->
        <!-- </navigator> -->
    </view>
</view>
<!-- 拉新图 -->
<view id='act_img'>
    <image bindtap='turnSecondPage' data-code='{{topUrl[0].url}}' wx:if='{{topUrl[0].image}}' id='bannerImg' src='{{topUrl[0].image}}'></image>
    <image wx:else id='bannerImg' src='{{urlAddress}}/pintuan_banner.png'></image>
</view>
<!-- 拼团列表 -->
<view id='showList'>
    <label id="note" wx:if='{{groupList}}'>以下小伙伴正在发起拼团,您可以直接参加</label>
    <label id="note" wx:if='{{!groupList}}'>暂时还没有团哦</label>
    <image id='emptyImg' wx:if='{{!groupList}}' src='{{urlAddress}}/empty_order.png'></image>  
    <view class='groupLits' wx:for='{{groupList}}' wx:for-item="item" wx:if="{{item.status==0}}" wx:key='{{index}}'>
        <view class='memList'>
            <image class='memImage' src='{{item.commanderUrl}}'></image>
            <label class="memName">{{item.commanderNickName!='亲'?item.commanderNickName:item.commanderMobile}}</label>
            <label wx:if='{{item.join}}' bindtap='turnDetail' data-code="{{item.orderCode}}" class="addgroup">
                <text class="look">查看</text>
                <!-- <image class='mem_an' src='{{urlAddress}}/pinTuan_an.png'></image> -->
            </label>
            <label wx:if='{{!item.join}}' bindtap='showGoods' data-code="{{item.groupId}}" class="addgroup">
                <view class="price-box">
                    <p>参团</p>
                    <p class="price">{{note}}</p>
                </view>
                <image wx:if="{{item.goodsList.length>0}}" hidden="{{item.isHidden}}" class='mem_an ' src='{{downIconUrl}}'></image>
                <image wx:if="{{item.goodsList.length>0}}"  hidden="{{!item.isHidden}}" class='mem_an ' src='{{iconUrl}}'></image>
                <!-- <image wx:else class='mem_an ' src='{{iconUrl}}'></image> -->
            </label>
            <label class="group_time">
                <label>还差{{item.shortNum}}人成团</label>
                <label>倒计时 <component-tag-name class='time_style' inner-text="{{item.groupSurplusTime}}"></component-tag-name></label>
            </label>
        </view>
        <view id='goods' hidden="{{item.isHidden}}">
            <view class='items_style' wx:for="{{item.goodsList}}" wx:key="{{index}}" wx:for-item="list">
                <image id='id_{{list.goodsCode}}' class='goods_style' wx:if="{{list.goodsImg=='null'}}" src="{{urlAddress}}/xiaomai.jpg" />
                <image id='id_{{list.goodsCode}}' wx:if="{{list.goodsImg!='null'}}" class='market_style goods_style'
                    src="{{list.goodsImg}}" />
                <label class="goods_name">
                    <image class='tuan_logo' src="{{urlAddress}}/tuan_logo.png" />
                    <p></p>{{list.goodsName}}
                </label>
                <label class="goods_money">
                    <p>团价¥{{list.groupPrice}}</p><span>¥{{list.originalPrice}}</span>
                </label>
                <label class="no_style" wx:if='{{list.status==2}}'>已售罄</label>
                <view class='add_sub_style' wx:if='{{list.status!=2}}'>
                    <label class="note_style" data-code='{{list.goodsCode}}' data-gcode='{{item.groupCode}}' data-gid='{{item.groupId}}'
                        bindtap="turnAction">就选他</label>
                </view>
            </view>
            <view wx:if="{{item.goodsList.length>0}}" class="take-up" bindtap='showGoods' data-code="{{item.groupId}}" >
                <text>收起所有商品</text>
                <image src="../../image/shouhui.png"></image>
            </view>
        </view>
    </view>
</view>